public class EnhacedRectangle extends Rectangle{
	public EnhancedRectangle(int x, int y, int w, int h){
		super(x,y,w,h);
	}
	public point getCenter() {
		return new Point((int) getCenterX(), (int) getCenterY());
	public void setCenter(int x, int y){
		setLocation(x-(int) getWidth()/2, y-(int) getHeight()/2);
	}
}
